<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">

<head>
  <meta charset="ISO-8859-1">
  <title>Student Management System</title>
  <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/4.3.1/css/bootstrap.min.css">
</head>

<body>
<div class="container">
  <h1> Student Management System </h1>
  <hr>
  <h2> add student </h2>

  <form action="#" th:action="@{/saveStudent}" th:object="${student}" method="GET">
    <input type="text" th:field="*{name}" placeholder="Name" class="form-control mb-4 col-4">



    <input type="text" th:field="*{sex}" placeholder="sex" class="form-control mb-4 col-4">

    <input type="text" th:field="*{age}" placeholder="age" class="form-control mb-4 col-4">

    <input type="text" th:field="*{status}" placeholder="status" class="form-control mb-4 col-4">

    <input type="text" th:field="*{ticy}" placeholder="ticy" class="form-control mb-4 col-4">

    <button type="submit" class="btn btn-info col-2"> save </button>
  </form>

  <hr>
<!--  <a th:href="@{ / }"> Back to Student List</a>-->
  <a th:href="@{/}" class="btn btn-primary btn-sm mb-3"> Back to Student List </a>
</div>

</body>

</html>